/**
 * 环境变量
 */
import {
  mode
} from '@/config/index.js'
const defaultEnv = require('@/ENV/default.js')

// 环境变量
const ENV = (() => {
  let oEnv = {}
  switch (mode) {
  case 'dev':
    oEnv = require('@/ENV/development.js');
    break;
  case 'test':
    oEnv = require('@/ENV/test.js');
    break;
  case 'pre':
    oEnv = require('@/ENV/pre.js');
    break;
  case 'prod':
    oEnv = require('@/ENV/production.js');
    break;
  // case 'local':
  //   oEnv = require('@/ENV/local.js');
  //   break;
  }
  // 
  return Object.freeze({
    ...defaultEnv,
    ...oEnv
  })
})();
export default ENV
